<template>
  <div>
    <template v-for="item in options">
      <p-button
        :key="item.key"
        v-bind="item"
        style="margin-right: 16px"
        @click="$emit('click', item.key)"
      >
        {{ item.label }}
      </p-button>
    </template>
  </div>
</template>

<script>
export default {
  props: {
    options: {
      type: Array,
      default: () => [
        {
          key: 'add',
          label: 'add',
        },
      ],
    },
  },
  computed: {},
  methods: {},
};
</script>
